').append($('').attr('href', '#' + n.idref).append(n.message));
}else{
var $li=$('').append(n.message);
}
$li.attr('id', n.error_id);
$('ul', $response).append($li);
});
}});
if(data.posted_data_hash){
$form.find('input[name="_wpcf7_posted_data_hash"]').first()
.val(data.posted_data_hash);
}};
$.ajax({
type: 'POST',
url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/feedback'),
data: formData,
dataType: 'json',
processData: false,
contentType: false
}).done(function(data, status, xhr){
ajaxSuccess(data, status, xhr, $form);
$('.ajax-loader', $form).removeClass('is-active');
}).fail(function(xhr, status, error){
var $e=$('').text(error.message);
$form.after($e);
});
};
wpcf7.triggerEvent=function(target, name, detail){
var event=new CustomEvent('wpcf7' + name, {
bubbles: true,
detail: detail
});
$(target).get(0).dispatchEvent(event);
};
wpcf7.setStatus=function(form, status){
var $form=$(form);
var prevStatus=$form.attr('data-status');
$form.data('status', status);
$form.addClass(status);
$form.attr('data-status', status);
if(prevStatus&&prevStatus!==status){
$form.removeClass(prevStatus);
}}
wpcf7.toggleSubmit=function(form, state){
var $form=$(form);
var $submit=$('input:submit', $form);
if(typeof state!=='undefined'){
$submit.prop('disabled', ! state);
return;
}
if($form.hasClass('wpcf7-acceptance-as-validation')){
return;
}
$submit.prop('disabled', false);
$('.wpcf7-acceptance', $form).each(function(){
var $span=$(this);
var $input=$('input:checkbox', $span);
if(! $span.hasClass('optional')){
if($span.hasClass('invert')&&$input.is(':checked')
|| ! $span.hasClass('invert')&&! $input.is(':checked')){
$submit.prop('disabled', true);
return false;
}}
});
};
wpcf7.resetCounter=function(form){
var $form=$(form);
$('.wpcf7-character-count', $form).each(function(){
var $count=$(this);
var name=$count.attr('data-target-name');
var down=$count.hasClass('down');
var starting=parseInt($count.attr('data-starting-value'), 10);
var maximum=parseInt($count.attr('data-maximum-value'), 10);
var minimum=parseInt($count.attr('data-minimum-value'), 10);
var updateCount=function(target){
var $target=$(target);
var length=$target.val().length;
var count=down ? starting - length:length;
$count.attr('data-current-value', count);
$count.text(count);
if(maximum&&maximum < length){
$count.addClass('too-long');
}else{
$count.removeClass('too-long');
}
if(minimum&&length < minimum){
$count.addClass('too-short');
}else{
$count.removeClass('too-short');
}};
$(':input[name="' + name + '"]', $form).each(function(){
updateCount(this);
$(this).keyup(function(){
updateCount(this);
});
});
});
};
wpcf7.notValidTip=function(target, message){
var $target=$(target);
$('.wpcf7-not-valid-tip', $target).remove();
$('').attr({
'class': 'wpcf7-not-valid-tip',
'aria-hidden': 'true',
}).text(message).appendTo($target);
if($target.is('.use-floating-validation-tip *')){
var fadeOut=function(target){
$(target).not(':hidden').animate({
opacity: 0
}, 'fast', function(){
$(this).css({ 'z-index': -100 });
});
};
$target.on('mouseover', '.wpcf7-not-valid-tip', function(){
fadeOut(this);
});
$target.on('focus', ':input', function(){
fadeOut($('.wpcf7-not-valid-tip', $target));
});
}};
wpcf7.refill=function(form, data){
var $form=$(form);
var refillCaptcha=function($form, items){
$.each(items, function(i, n){
$form.find(':input[name="' + i + '"]').val('');
$form.find('img.wpcf7-captcha-' + i).attr('src', n);
var match=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);
$form.find('input:hidden[name="_wpcf7_captcha_challenge_' + i + '"]').attr('value', match[ 1 ]);
});
};
var refillQuiz=function($form, items){
$.each(items, function(i, n){
$form.find(':input[name="' + i + '"]').val('');
$form.find(':input[name="' + i + '"]').siblings('span.wpcf7-quiz-label').text(n[ 0 ]);
$form.find('input:hidden[name="_wpcf7_quiz_answer_' + i + '"]').attr('value', n[ 1 ]);
});
};
if(typeof data==='undefined'){
$.ajax({
type: 'GET',
url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/refill'),
beforeSend: function(xhr){
var nonce=$form.find(':input[name="_wpnonce"]').val();
if(nonce){
xhr.setRequestHeader('X-WP-Nonce', nonce);
}},
dataType: 'json'
}).done(function(data, status, xhr){
if(data.captcha){
refillCaptcha($form, data.captcha);
}
if(data.quiz){
refillQuiz($form, data.quiz);
}});
}else{
if(data.captcha){
refillCaptcha($form, data.captcha);
}
if(data.quiz){
refillQuiz($form, data.quiz);
}}
};
wpcf7.clearResponse=function(form){
var $form=$(form);
$form.siblings('.screen-reader-response').each(function(){
$('[role="status"]', this).html('');
$('ul', this).html('');
});
$('.wpcf7-not-valid-tip', $form).remove();
$('[aria-invalid]', $form).attr('aria-invalid', 'false');
$('.wpcf7-form-control', $form).removeClass('wpcf7-not-valid');
$('.wpcf7-response-output', $form).hide().empty();
};
wpcf7.apiSettings.getRoute=function(path){
var url=wpcf7.apiSettings.root;
url=url.replace(wpcf7.apiSettings.namespace,
wpcf7.apiSettings.namespace + path);
return url;
};})(jQuery);
(function (){
if(typeof window.CustomEvent==="function") return false;
function CustomEvent(event, params){
params=params||{ bubbles: false, cancelable: false, detail: undefined };
var evt=document.createEvent('CustomEvent');
evt.initCustomEvent(event,
params.bubbles, params.cancelable, params.detail);
return evt;
}
CustomEvent.prototype=window.Event.prototype;
window.CustomEvent=CustomEvent;
})();
jQuery(document).ready(function ($){
console.log('Pass test: ' + js_options.ga);
function pixelmateYouTubeInit(){
}
pixelmateYouTubeInit();
function PixelmateInit(){
if(getCookie("did_consent")!="yes"&& getCookie("did_consent")!="wait"){
pixelmateGeneralBanner();
}else if(getCookie("did_consent")=="wait"){
setTimeout(function(){
pixelmateGeneralBanner();
}, 5000);
}else{}
function gaInit(){
var gaSettings=js_options.ga==1;
var gaTracking=getCookie("ga_tracking")!="deny";
var genTracking=getCookie("gen_tracking")=="allow";
var statConsent=getCookie("statistikConsent")=="allow";
if(gaSettings&&gaTracking&&(genTracking||statConsent)){
pixelmateGaCode();
}else{
console.log("Google Analytics für diese Website deaktivert");
}}
gaInit();
function fbInit(){
var fbSettings=js_options.fb==1;
var fbTracking=getCookie("fb_tracking")!="deny";
var genTracking=getCookie("gen_tracking")=="allow";
var adsConsent=getCookie("adsConsent")=="allow";
var fbOptOut=js_options.fb_opt_out==1;
if(fbOptOut&&!getCookie("did_consent")){
if(fbSettings&&(!getCookie("fb_tracking")||!getCookie("adsConsent"))){
pixelmateFbCode();
}else{
console.log("Facebook Tracking für diese Website deaktiviert");
}}else{
if(fbSettings&&fbTracking&&(genTracking||adsConsent)){
pixelmateFbCode();
}else{
console.log("Facebook Tracking für diese Website deaktiviert");
}}
}
fbInit();
if(js_options.pixelmate_tag_manager==1&&getCookie("gen_tracking")=="allow"){
pixelmateTagManager();
}else{
}
if(js_options.csp==1&&getCookie("gen_tracking")!="allow"&&js_options.wlYoutube!=1){
pixYouTube();
}else{}
pixelmateRevoke();
console.log("log: " + js_options.csp);
}
PixelmateInit();
function pixelmateCookieInit(){
if(getCookie("statistikConsent")=="allow"){
setCookie("ga_tracking", "allow", 14);
}
if(getCookie("adsConsent")=="allow"){
setCookie("fb_tracking", "allow", 14);
}
if(getCookie("videoConsent")=="allow"){
setCookie("youtubeConsent", "allow", 14);
setCookie("vimeoConsent", "allow", 14)
}
if(getCookie("extraContent")=="allow"){
setCookie("gmapsConsent", "allow", 14);
setCookie("twitterConsent", "allow", 14);
setCookie("webinarisConsent", "allow", 14);
}}
pixelmateCookieInit();
function pixelmateCookiesOff(){
pixelmateCookieDelete('gen_tracking');
pixelmateCookieDelete('ga_tracking');
pixelmateCookieDelete('fb_tracking');
pixelmateCookieDelete('youtubeConsent');
pixelmateCookieDelete('vimeoConsent');
pixelmateCookieDelete('gmapsConsent');
pixelmateCookieDelete('webinarisConsent');
pixelmateCookieDelete('twitterConsent');
pixelmateCookieDelete('statistikConsent');
pixelmateCookieDelete('adsConsent');
pixelmateCookieDelete('videoConsent');
pixelmateCookieDelete('extraConsent');
deleteCookie('_ga');
deleteCookie('_gid');
deleteCookie('_fbp');
deleteCookie('_gat_gtag_' + js_options.gaId);
deleteCookieFb('act');
deleteCookieFb('c_user');
}
function pixelmateCookieDelete(a){
if(getCookie(a).length){
setCookie(a, "deny", -1);
}}
function pixelmateRevoke(){
var cb_aktiv=js_options.cb_aktiv;
var cb_position=js_options.cb_position;
var position="";
var cb_font_size="font-size: " + js_options.cb_font_size + "px !important; ";
var cb_background="background-color: " + js_options.cb_background + " !important; ";
var cb_color="color: " + js_options.cb_color + " !important;";
console.log(cb_aktiv + " " + cb_position + " " + cb_font_size + " " + cb_background + " " + cb_color);
var cookieDisplay=(js_options.cb_aktiv=="1") ? " ":"display: none !important";
var revokeBtn="";
if(cb_position=="unten links"){
position="left: 60px; right: auto; ";
}else{
position="left: auto; right: 60px; ";
}
revokeBtn="";
$("body").append(revokeBtn);
$(".pixelmate-revoke").click(function (){
pixelmateSettings();
});
}
function pixelmateGeneralBanner(){
var pos=js_options.design_pos;
var posBanner="";
if(pos=="Unten (volle Breite)"){
pixelmateBannerBottom();
}else if(pos=="Unten rechts"){
pos="pixelmate-alt-bottom-right";
posBanner="pixelmate-general-banner-alt-bottom-right";
}else if(pos=="Unten links"){
pos="pixelmate-alt-bottom-left";
posBanner="pixelmate-general-banner-alt-bottom-left";
}else{
pixelmateBannerFullscreen();
}
function pixelmateBannerFullscreen(){
var boxColorText="color: " + js_options.box_color_text + " !important; ";
var boxBgColor="background-color: " + js_options.box_bg_color + " !important; ";
var bgVerlauf=(js_options.box_bg_verlauf==1) ? "background: linear-gradient(to top right, " + js_options.box_bg_verlauf_1 + " , " + js_options.box_bg_verlauf_2 + ");":"";
var boxMargin="margin: " + js_options.box_margin + " !important; ";
var boxBorder="border: " + js_options.box_border + " !important; ";
var boxPadding="padding: " + js_options.box_padding + " !important; ";
var boxBorderRadius="border-radius: " + js_options.box_border_radius + " !important; ";
var hFontSize=js_options.box_h_font_size;
var fontSize=js_options.box_font_size;
var lineHeight=js_options.box_line_height;
var btnBgColorPre=(js_options.btn_bg_color==null) ? "red":js_options.btn_bg_color;
var btnColorPre=(js_options.btn_color==null) ? "white":js_options.btn_color;
var btnBorderWidthPre=(js_options.btn_border_width==null) ? "0":js_options.btn_border_width;
var btnBorderColorPre=(js_options.btn_border_color==null) ? "white":js_options.btn_border_color;
var btnBorderRadiusPre=(js_options.btn_border_radius==null) ? "4":js_options.btn_border_radius;
var btnBgColor="background-color: " + btnBgColorPre + " !important; ";
var btnColor="color: " + btnColorPre + " !important; ";
var btnBorder="border: " + btnBorderWidthPre + "px solid " + btnBorderColorPre + " !important; ";
var btnBorderRadius="border-radius: " + btnBorderRadiusPre + "px !important; ";
var colorBtnBg="background-color: " + js_options.color_btn_bg + " !important; ";
var colorBtnText="color: " + js_options.color_btn_text + " !important; ";
var boxShadow="";
var dse=js_options.dse;
var imp=js_options.impressum;
var dseText=(js_options.gen_dse_text==null) ? "Datenschutz":js_options.gen_dse_text;
var impText=(js_options.gen_impressum_text==null) ? "Impressum":js_options.gen_impressum_text;
if(js_options.dse_extern==1){
dse=js_options.dse_extern_url;
}else{
dse=js_options.dse;
}
console.log("imp_dse: " + js_options.impressum_extern + "; " + js_options.dse_extern);
if(js_options.impressum_extern==1){
imp=js_options.impressum_extern_url;
}else{
imp=js_options.impressum;
}
if(js_options.box_shadow==1){
boxShadow="box-shadow: " + js_options.box_shadow_h + "px " + js_options.box_shadow_v + "px " + js_options.box_shadow_blur + "px " + js_options.box_shadow_color + "; ";
}else{
}
let bannerStyle="style='" + boxColorText + boxBgColor + bgVerlauf + boxMargin + boxBorder + boxPadding + boxBorderRadius + boxShadow + "'";
let headingStyle="style='" + boxColorText + "'";
let btnStyle="style='" + btnBgColor + btnColor + btnBorder + btnBorderRadius + " margin-bottom: 12px; padding: 12px 24px !important'";
let genHeadingText=(js_options.gen_individuell==1) ? js_options.gen_heading:js_options.gen_heading_default;
let genHeading="
" + genHeadingText + "
";
let genNoticeText=(js_options.gen_individuell==1) ? js_options.gen_text:"Um diese Website zu betreiben, ist es für uns notwendig Cookies zu verwenden. Einige Cookies sind erforderlich, um die Funktionalität zu gewährleisten, andere brauchen wir für unsere Statistik und wieder andere helfen uns dir nur die Werbung anzuzeigen, die dich interessiert. Mehr erfährst du in unserer Datenschutzerklärung";
let genNotice="
" + genNoticeText + "
";
let genBtnAllow=(js_options.gen_individuell==1&&js_options.gen_allow_text!="") ? js_options.gen_allow_text:"ALLE ZULASSEN";
let genBtnDeny=(js_options.gen_individuell==1&&js_options.gen_deny_text!="") ? js_options.gen_deny_text:"nicht mehr als nötig";
let genBtnSingle=(js_options.gen_individuell==1&&js_options.gen_single_text!="") ? js_options.gen_single_text:"Einstellungen";
let genBtns="
";
$("body").append(genWrapper);
}
function pixelmateBannerBottom(){
var boxColorText="color: " + js_options.box_color_text + " !important; ";
var boxBgColor="background-color: " + js_options.box_bg_color + " !important; ";
var bgVerlauf=(js_options.box_bg_verlauf==1) ? "background: linear-gradient(to top right, " + js_options.box_bg_verlauf_1 + " , " + js_options.box_bg_verlauf_2 + ");":"";
var boxMargin="margin: " + js_options.box_margin + " !important; ";
var boxBorder="border: " + js_options.box_border + " !important; ";
var boxPadding="padding: " + js_options.box_padding + " !important; ";
var boxBorderRadius="border-radius: " + js_options.box_border_radius + " !important; ";
var btnBgColorPre=(js_options.btn_bg_color==null) ? "red":js_options.btn_bg_color;
var btnColorPre=(js_options.btn_color==null) ? "white":js_options.btn_color;
var btnBorderWidthPre=(js_options.btn_border_width==null) ? "0":js_options.btn_border_width;
var btnBorderColorPre=(js_options.btn_border_color==null) ? "white":js_options.btn_border_color;
var btnBorderRadiusPre=(js_options.btn_border_radius==null) ? "4":js_options.btn_border_radius;
var btnBgColor="background-color: " + btnBgColorPre + " !important; ";
var btnColor="color: " + btnColorPre + " !important; ";
var btnBorder="border: " + btnBorderWidthPre + "px solid " + btnBorderColorPre + " !important; ";
var btnBorderRadius="border-radius: " + btnBorderRadiusPre + "px !important; ";
var hFontSize=js_options.box_h_font_size;
var fontSize=js_options.box_font_size;
var lineHeight=js_options.box_line_height;
var colorBtnBg="background-color: " + js_options.color_btn_bg + " !important; ";
var colorBtnText="color: " + js_options.color_btn_text + " !important; ";
var boxShadow="";
var dse=js_options.dse;
var imp=js_options.impressum;
var dseText=(js_options.gen_dse_text==null) ? "Datenschutz":js_options.gen_dse_text;
var impText=(js_options.gen_impressum_text==null) ? "Impressum":js_options.gen_impressum_text;
if(js_options.dse_extern==1){
dse=js_options.dse_extern_url;
}else{
dse=js_options.dse;
}
console.log("imp_dse: " + js_options.impressum_extern + "; " + js_options.dse_extern);
if(js_options.impressum_extern==1){
imp=js_options.impressum_extern_url;
}else{
imp=js_options.impressum;
}
if(js_options.box_shadow==1){
boxShadow="box-shadow: " + js_options.box_shadow_h + "px " + js_options.box_shadow_v + "px " + js_options.box_shadow_blur + "px " + js_options.box_shadow_color + "; ";
}else{
}
let bannerStyle="style='" + boxColorText + boxBgColor + bgVerlauf + boxMargin + boxBorder + boxPadding + boxBorderRadius + boxShadow + "'";
let headingStyle="style='" + boxColorText + "'";
let btnStyle="style='" + btnBgColor + btnColor + btnBorder + btnBorderRadius + " padding: 12px 24px !important'";
let genHeadingText=(js_options.gen_individuell==1) ? js_options.gen_heading:"Wir verwenden Cookies";
let genHeading="
" + genHeadingText + "
";
let genNoticeText=(js_options.gen_individuell==1) ? js_options.gen_text:"Um diese Website zu betreiben, ist es für uns notwendig Cookies zu verwenden. Einige Cookies sind erforderlich, um die Funktionalität zu gewährleisten, andere brauchen wir für unsere Statistik und wieder andere helfen uns dir nur die Werbung anzuzeigen, die dich interessiert. Mehr erfährst du in unserer Datenschutzerklärung";
let genNotice="
" + genNoticeText + "
";
let genBtnAllow=(js_options.gen_individuell==1&&js_options.gen_allow_text!="") ? js_options.gen_allow_text:"ALLE ZULASSEN";
let genBtnDeny=(js_options.gen_individuell==1&&js_options.gen_deny_text!="") ? js_options.gen_deny_text:"nicht mehr als nötig";
let genBtnSingle=(js_options.gen_individuell==1&&js_options.gen_single_text!="") ? js_options.gen_single_text:"einzeln bestätigen";
let genBtns="";
let genFooter="";
let genBanner="
" + genHeading + "
" + genNotice + genBtns + "
" + "
" + genFooter + "
";
let genWrapper="
" + genBanner + "
";
$("body").append(genWrapper);
}
if(pos="pixelmate-alt-bottom"){
}else{}
$(".pixelmate-general-allow, .pixelmate-general-allow-bottom").click(function (){
var h=$(".pixelmate-wrapper-bottom").height();
setCookie("gen_tracking", "allow", 14);
setCookie("did_consent", "yes", 14);
setCookie("ga_tracking", "allow", 14);
setCookie("fb_tracking", "allow", 14);
setCookie("youtubeConsent", "allow", 14);
setCookie("vimeoConsent", "allow", 14);
setCookie("gmapsConsent", "allow", 14);
setCookie('statistikConsent', "allow", 14);
setCookie('adsConsent', "allow", 14);
setCookie('videoConsent', "allow", 14);
setCookie('extraConsent', "allow", 14);
$(".pixelmate-gen-wrapper").fadeOut(800);
$(".pixelmate-wrapper-bottom").animate({
bottom: '-' + h + 'px'
}, 800);
pixelmateGaCode();
pixelmateFbCode();
location.reload();
});
$(".pixelmate-general-deny, .pixelmate-general-deny-bottom").click(function (){
var h=$(".pixelmate-wrapper-bottom").height();
setCookie('gen_tracking', 'deny', 14);
setCookie('did_consent', 'yes', 14);
setCookie("ga_tracking", "deny", 14);
setCookie("fb_tracking", "deny", 14);
setCookie("youtubeConsent", "deny", 14);
setCookie("vimeoConsent", "deny", 14);
setCookie("gmapsConsent", "deny", 14);
setCookie('statistikConsent', "deny", 14);
setCookie('adsConsent', "deny", 14);
setCookie('videoConsent', "deny", 14);
setCookie('extraConsent', "deny", 14);
$(".pixelmate-general-banner-wrapper").fadeOut(800);
$(".pixelmate-wrapper-bottom").animate({
bottom: '-' + h + 'px'
}, 800);
if(js_options.fb_opt_out==1){
location.reload();
}else{}});
$(".pixelmate-general-single, .pixelmate-general-single-bottom").click(function (){
var h=$(".pixelmate-wrapper-bottom").height();
setCookie('gen_tracking', 'single', 14);
setCookie("ga_tracking", "deny", 14);
setCookie("fb_tracking", "deny", 14);
setCookie("youtubeConsent", "deny", 14);
setCookie("vimeoConsent", "deny", 14);
setCookie("gmapsConsent", "deny", 14);
$(".pixelmate-general-banner-wrapper").fadeOut(800);
$(".pixelmate-wrapper-bottom").animate({
bottom: '-' + h + 'px'
}, 800);
pixelmateSettings();
});
$(".pixelmate-general-dse-btn").click(function (){
setCookie('did_consent', 'wait', 14);
$(".pixelmate-general-banner-wrapper").fadeOut(800);
});
$(".pixelmate-general-imp-btn").click(function (){
setCookie("did_consent", "wait", 14);
$(".pixelmate-general-banner-wrapper").fadeOut(800);
});
}
function pixelmateFixPosBottom(){
let h=$(window).height();
let bh=$(".pixelmate-general-banner-alt-bottom").height();
let top=h - bh;
if(top < 0){
top=0;
}else{}
$(".pixelmate-general-banner-alt-bottom").css({
top: top + "px !important",
bottom: "auto"
});
console.log("Banner fixed: " + top);
}
function pixelmateSettings(){
var boxColorText="color: " + js_options.box_color_text + " !important; ";
var boxBgColor="background-color: " + js_options.box_bg_color + " !important; ";
var bgVerlauf=(js_options.box_bg_verlauf==1) ? "background: linear-gradient(to top right, " + js_options.box_bg_verlauf_1 + " , " + js_options.box_bg_verlauf_2 + ");":"";
var boxMargin="margin: " + js_options.box_margin + " !important; ";
var boxBorder="border: " + js_options.box_border + " !important; ";
var boxPadding="padding: " + js_options.box_padding + " !important; ";
var boxBorderRadius="border-radius: " + js_options.box_border_radius + " !important; ";
var btnBgColorPre=(js_options.btn_bg_color==null) ? "red":js_options.btn_bg_color;
var btnColorPre=(js_options.btn_color==null) ? "white":js_options.btn_color;
var btnBorderWidthPre=(js_options.btn_border_width==null) ? "0":js_options.btn_border_width;
var btnBorderColorPre=(js_options.btn_border_color==null) ? "white":js_options.btn_border_color;
var btnBorderRadiusPre=(js_options.btn_border_radius==null) ? "4":js_options.btn_border_radius;
var btnBgColor="background-color: " + btnBgColorPre + " !important; ";
var btnColor="color: " + btnColorPre + " !important; ";
var btnBorder="border: " + btnBorderWidthPre + "px solid " + btnBorderColorPre + " !important; ";
var btnBorderRadius="border-radius: " + btnBorderRadiusPre + "px !important; ";
var colorBtnBg="background-color: " + js_options.color_btn_bg + " !important; ";
var colorBtnText="color: " + js_options.color_btn_text + " !important; ";
var boxShadow="";
var dse=js_options.dse;
var imp=js_options.impressum;
var dseText=js_options.gen_dse_text;
var impText=js_options.gen_impressum_text;
var dseText=js_options.gen_individuell ? js_options.gen_dse_text:"Datenschutzerklärung";
var dseHinweis=js_options.pix_settings_check ? js_options.pix_settings_hinweis_dse:"Genauere Informationen über die auf dieser Website genutzten Dienste findest du in der Datenschutzerklärung";
if(js_options.dse_extern==1){
dse=js_options.dse_extern_url;
}else{
dse=js_options.dse;
}
console.log("imp_dse: " + js_options.impressum_extern + "; " + js_options.dse_extern);
if(js_options.impressum_extern==1){
imp=js_options.impressum_extern_url;
}else{
imp=js_options.impressum;
}
if(js_options.box_shadow==1){
boxShadow="box-shadow: " + js_options.box_shadow_h + "px " + js_options.box_shadow_v + "px " + js_options.box_shadow_blur + "px " + js_options.box_shadow_color + "; ";
}else{
}
let bannerStyle="style='" + boxColorText + boxBgColor + bgVerlauf + boxMargin + boxBorder + boxPadding + boxBorderRadius + boxShadow + "'";
let headingStyle="style='" + boxColorText + "'";
let btnStyle="style='" + btnBgColor + btnColor + btnBorder + btnBorderRadius + " padding: 12px 24px !important'";
var header="
" + js_options.pix_settings_uberschrift + "
";
var notwendig="
" + js_options.pix_settings_notwendige_c + "
";
var statistik=(js_options.pix_settings_statistik_aus!=1) ? "
" + js_options.pix_settings_statistik + "
":"";
var werbung=(js_options.pix_settings_werbung_aus!=1) ? "
" + js_options.pix_settings_werbung + "
":"";
var videos=(js_options.pix_settings_videos_aus!=1) ? "
" + js_options.pix_settings_videos + "
":"";
var externe=(js_options.pix_settings_sonstige_aus!=1) ? "
");
})
})
}else{}
jQuery('.aktivate-youtube').click(function (){
allowYoutube();
location.reload(true);
});
}
function allowYoutube(){
setCookie('youtubeConsent', 'allow', 365);
}
function dismissYoutube(){
setCookie('youtubeConsent', 'dismiss', 365);
}
function pixelmateVimeoInit(){
if(js_options.csp==1&&getCookie("gen_tracking")!="allow"&&js_options.wlVimeo!=1){
pixVimeo();
}else{}}
pixelmateVimeoInit();
function pixVimeo(){
var vimeoCookie=getCookie("vimeoConsent");
var vimeo_length=jQuery("iframe[src*='vimeo']").length;
var vimeo_select=jQuery("iframe[src*='vimeo']");
var vimeo_heading="Vimeo aktivieren?";
var vimeo_text="Um Vimeo Videos anzeigen zu können, müssen Cookies von Vimeo gespeichert werden. Mehr dazu findest du in den Datenschutzbestimmungen von Vimeo. ";
if(js_options.vimeoIn==1){
vimeo_heading=(js_options.vimeoHeading=="") ? vimeo_heading:js_options.vimeoHeading;
vimeo_text=(js_options.vimeoText=="") ? vimeo_text:js_options.vimeoText;
console.log("vimeoIn");
}
if((jQuery("iframe[src*='vimeo']").length)&&vimeoCookie!="allow"){
console.log("Vimeo found");
vimeo_length=jQuery("iframe[src*='vimeo']").length;
vimeo_select=jQuery("iframe[src*='vimeo']");
console.log("Vimeo found on this site:" + vimeoCookie);
jQuery("iframe[src*='vimeo']").each(function (){
vimeo_select.parent().wrap('');
jQuery('.cleaner-vimeo').empty().each(function (){
jQuery(this).append("
");
})
})
}else{}}
jQuery('.aktivate-vimeo').click(function (){
setCookie('vimeoConsent', 'allow', 365);
location.reload(true);
});
function pixelmateGmapsInit(){
if(js_options.csp==1&&getCookie("gen_tracking")!="allow"&&js_options.wlGmaps!=1){
pixGmaps();
}else{}}
pixelmateGmapsInit();
function allowGMaps(){
setCookie('gmapsConsent', 'allow', 365);
}
function dismissGMaps(){
setCookie('gmapsConsent', 'dismiss', 365);
}
function pixGmaps(){
console.log("gmaps fn here");
var gmapsCookie=getCookie("gmapsConsent");
var gmaps_length=jQuery("iframe[src*='maps.google.com']").length;
var gmaps_select=jQuery("iframe[src*='maps.google.com']");
if(jQuery("iframe[src*='maps.google.com']").length){
}else{
if(jQuery(".google-map").length){
gmaps_select=jQuery(".google-map");
console.log("gmaps found on this site:" + gmapsCookie);
}else{
console.log("gmaps found on this site: No selector found" + gmapsCookie);
}}
if(gmaps_select.length&&gmapsCookie!="allow"&&getCookie("gen_tracking")!="allow"){
console.log("gmaps found on this site:" + gmapsCookie);
gmaps_select.each(function (){
gmaps_select.parent().parent().wrap('');
jQuery(".aktivate-gmaps").css("color", "white !important");
jQuery('.pixelmate-cleaner-gmaps').empty().each(function (){
jQuery(this).append("
Google Maps aktivieren?
Eigentlich sollte hier Google Maps geladen werden. Leider kann es aufgrund deiner Cookie Entscheidung nicht angezeigt werden. Wenn du es aktivieren möchtest, stimmst du damit der Datenverarbeitung durch Google Maps zu.
");
})
})
}else{}}
function aktivateGmaps(){
jQuery('.aktivate-gmaps').click(function (){
allowGMaps();
location.reload(true);
})
}
aktivateGmaps();
function pixelmateYouTubeSc(){
var youtube_heading="YouTube aktivieren?";
var youtube_text="Um Videos auf dieser Seite sehen zu können, müssen Cookies von YouTube gesetzt werden. Mehr dazu findest du in den Datenschutzbestimmungen von YouTube. ";
if(js_options.youtubeIn==1){
youtube_heading=(js_options.youtubeHeading=="") ? youtube_heading:js_options.youtubeHeading;
youtube_text=(js_options.youtubeText=="") ? youtube_text:js_options.youtubeText;
console.log("youtubeIn");
}
if(getCookie("youtubeConsent")=="allow"||getCookie("gen_tracking")=="allow"){
pixelmateYouTubeScCode();
}else{
$(".pixelmate-youtube-shortcode").each(function (){
$(this).append("
");
});
}
$('.aktivate-youtube-shortcode').click(function (){
setCookie('youtubeConsent', 'allow', 365);
pixelmateYouTubeScCode();
});
}
pixelmateYouTubeSc();
function pixelmateYouTubeScCode(){
$(".pixelmate-youtube-shortcode").each(function (){
$(this).append('');
});
}
function pixelmateWebinarisInit(){
if(js_options.webinaris_load==1&&getCookie("gen_tracking")!="allow"&&getCookie("webinarisConsent")!="allow"){
pixelmateWebinarisBanner();
}else{
pixelmateWebinaris();
}}
pixelmateWebinarisInit();
function pixelmateWebinaris(){
if((getCookie("webinarisConsent")=="allow"&&js_options.webinaris_load==1)||(getCookie("gen_tracking")=="allow"&&js_options.webinaris_load==1)){
$.getScript("https://webinaris.co/public_html/js/quellcode.js", function (){
$('.pixelmate-webinaris').append(js_options.webinaris);
console.log("webinaris aktive");
});
}else{
pixelmateWebinarisBanner();
console.log(js_options.webinaris_load);
}}
function pixelmateWebinarisBanner(){
let webinarisHeading="Webinaris aktivieren?";
let webinarisText="Hier sollte eigentlich ein Formular von Webinaris stehen. Beim anzeigen werden Cookies von Webinaris gesetzt, die für Tracking und Werbung verwendet werden.";
jQuery('.pixelmate-webinaris').append("